package com.emar.adx.yiqifa.java;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: xiaoliang
 * @CreateDate: 2015/12/25 11:08
 */
public class MapDemo {

    public static void main(String[] args) {
        Map map = new HashMap<String,Object>();
        map.put("test","test123");
        map.put("test2","test123");
        map.put("test3", "123.01");

        Object obj = map.get("test");
        Object obj1 = map.get("testxxx");

        List<Map<String,Object>> list = new ArrayList<Map<String, Object>>();
        list.add(map);

        Map map1 = list.get(0);
        Object o = map1.get("test3");
        String s = o.toString();

        double tt = Double.valueOf(s);
        int tt2 = Double.valueOf(s).intValue();

        int temp = Integer.valueOf(list.get(0).get("test3").toString());

        System.out.print(obj.toString());
        System.out.print(obj1.toString());

    }
}
